package ar.com.psicosoft.service.psicosoft;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import ar.com.psicosoft.exception.PsicosoftException;
import ar.com.psicosoft.model.psicosoft.NivelEstudio;
import ar.com.psicosoft.persistence.psicosoft.NivelEstudioDao;

@Service("nivelEstudioService")
public class NivelEstudioServiceImpl implements NivelEstudioService {

	private static final long serialVersionUID = 1L;

	@Resource
	private NivelEstudioDao nivelEstudioDao;

	@Override
	public NivelEstudio buscarNivelEstudioPorId(Integer idNivelEstudio)
			throws PsicosoftException {
		return this.nivelEstudioDao.buscarNivelEstudioPorId(idNivelEstudio);
	}

	@Override
	public NivelEstudio buscarNivelEstudioPorNombreNivelEstudio(
			String nombreNivelEstudio) throws PsicosoftException {
		return this.nivelEstudioDao
				.buscarNivelEstudioPorNombreNivelEstudio(nombreNivelEstudio);
	}

	@Override
	public List<NivelEstudio> buscarNivelesEstudio() throws PsicosoftException {
		return this.nivelEstudioDao.buscarNivelesEstudio();
	}

	@Override
	public void guardarNivelEstudio(NivelEstudio nivelEstudio)
			throws PsicosoftException {
		this.nivelEstudioDao.guardarNivelEstudio(nivelEstudio);
	}

	@Override
	public void modificarNivelEstudio(NivelEstudio nivelEstudio)
			throws PsicosoftException {
		this.nivelEstudioDao.modificarNivelEstudio(nivelEstudio);
	}

	@Override
	public void eliminarNivelEstudio(NivelEstudio nivelEstudio)
			throws PsicosoftException {
		this.nivelEstudioDao.eliminarNivelEstudio(nivelEstudio);
	}

	@Override
	public void bajaNivelEstudio(NivelEstudio nivelEstudio)
			throws PsicosoftException {
		this.nivelEstudioDao.bajaNivelEstudio(nivelEstudio);
	}

}